package com.dayuanit.dy17.atm.atmbackoffice.mapper;

import com.dayuanit.dy17.atm.atmbackoffice.entity.Salary;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SalaryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Salary record);

    int insertSelective(Salary record);

    Salary selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Salary record);

    int updateByPrimaryKey(Salary record);

    List<Salary> listSalary(Integer status);

    int updateStatus(@Param("oldStatus") Integer oldStatus,
                     @Param("salaryId") Long salaryId,
                     @Param("newStatus") Integer newStatus);

}